package com.xiaoq.feature.entity;

import java.io.Serializable;
import java.util.List;

import org.mongodb.morphia.annotations.Entity;
import com.xiaoq.MongoEntity;

/**
 * 餐饮美食
 * @author wang zhihao
 *
 */
@Entity(value="shop_food", noClassnameStored=true)
public class ShopFoodEntity extends MongoEntity implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String sitesId; // 景区Id (如果商店不在景区内就为空？)
	private String name ;  // 店铺名称
	private String shortName; // 店铺简介
	private String mainImgUrl; // 店铺主图
	private Double longitude; // 店铺经度
	private Double latitude; // 店铺维度
	private Double avgConsum; // 人均消费
	private Double avgScore; // 平均评分
	private List<ShopMenusEntity> cuisinesList; //菜系列表
	private List<String> tags; // 店铺标签
	private String merchantId; // 商店Id
	private String address; // 地址
	private String phone; // 管理员电话
	private String openSchedule; // 营业时间
	private String zoneProvince; // 区划省
	private String zoneCity; // 区划市
	private String zoneDistrict; // 区划区
	private String shopFoodFlag; //商店特色

	/**
	 * 内嵌经纬度
	 */
	private double[] loc = new double[2];

	public String getSitesId() {
		return sitesId;
	}
	public void setSitesId(String sitesId) {
		this.sitesId = sitesId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getShortName() {
		return shortName;
	}
	public void setShortName(String shortName) {
		this.shortName = shortName;
	}
	public String getMainImgUrl() {
		return mainImgUrl;
	}
	public void setMainImgUrl(String mainImgUrl) {
		this.mainImgUrl = mainImgUrl;
	}
	public Double getLongitude() {
		return longitude;
	}
	public void setLongitude(Double longitude) {
		this.longitude = longitude;

		if(longitude != null){
			loc[0] = longitude;
		}
	}
	public Double getLatitude() {
		return latitude;
	}
	public void setLatitude(Double latitude) {
		this.latitude = latitude;
		if (latitude != null){
			loc[1] = latitude;
		}
	}
	public Double getAvgConsum() {
		return avgConsum;
	}
	public void setAvgConsum(Double avgConsum) {
		this.avgConsum = avgConsum;
	}
	public Double getAvgScore() {
		return avgScore;
	}
	public void setAvgScore(Double avgScore) {
		this.avgScore = avgScore;
	}
	public List<ShopMenusEntity> getCuisinesList() {
		return cuisinesList;
	}
	public void setCuisinesList(List<ShopMenusEntity> cuisinesList) {
		this.cuisinesList = cuisinesList;
	}
	public List<String> getTags() {
		return tags;
	}
	public void setTags(List<String> tags) {
		this.tags = tags;
	}
	public String getMerchantId() {
		return merchantId;
	}
	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getOpenSchedule() {
		return openSchedule;
	}
	public void setOpenSchedule(String openSchedule) {
		this.openSchedule = openSchedule;
	}
	public String getZoneProvince() {
		return zoneProvince;
	}
	public void setZoneProvince(String zoneProvince) {
		this.zoneProvince = zoneProvince;
	}
	public String getZoneCity() {
		return zoneCity;
	}
	public void setZoneCity(String zoneCity) {
		this.zoneCity = zoneCity;
	}
	public String getZoneDistrict() {
		return zoneDistrict;
	}
	public void setZoneDistrict(String zoneDistrict) {
		this.zoneDistrict = zoneDistrict;
	}
	public String getShopFoodFlag() {
		return shopFoodFlag;
	}
	public void setShopFoodFlag(String shopFoodFlag) {
		this.shopFoodFlag = shopFoodFlag;
	}

	public double[] getLoc() {
		return loc;
	}

	public void setLoc(double[] loc) {
		this.loc = loc;
	}
}
